home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
wb
/
czesc_2
/
iconmanager
/
whatis
/
whatis.doc
< prev
next >
Wrap
Text File
|
1994-02-07
|
3KB
|
181 lines
whatis.library/CmpFileType whatis.library/CmpFileType
NAME
CmpFileType -- compares two FileTypes.
SYNOPSIS
result = CmpFileType( FileType1, FileType2 )
D0 A0 A1
WORD CmpFileType( FileType Type1, FileType Type2 );
FUNCTION
Compares the two supplied FileTypes. Returns zero if Type1 == Type2.
INPUTS
Type1 = FileType
Type2 = FileType
RESULT
result - zero if Type1 == Type2
>zero if Type1 > Type2
<zero if Type1 < Type2
NOTES
BUGS
SEE ALSO
whatis.library/GetIconName whatis.library/GetIconName
NAME
GetIconName -- get default icon filename
SYNOPSIS
IconName = GetIconName( FileType )
D0 A0
char *GetIconName( FileType );
FUNCTION
Returns a pointer to the filename of the default icon for the
specified FileType.
INPUTS
FileType = ULONG returned by WhatIs().
RESULT
IconName - pointer to a NULL-terminated string.
NOTES
BUGS
SEE ALSO
whatis.library/GetIDString whatis.library/GetIDString
NAME
GetIDString -- converts FileType into a string for displaying
SYNOPSIS
Type = GetIDString( FileType )
D0 A0
char *GetIDString( FileType );
FUNCTION
Returns a pointer to a C-format string which describes the FileType
supplied.
INPUTS
FileType = ULONG returned by WhatIs().
RESULT
Type - pointer to a string of characters.
NOTES
BUGS
SEE ALSO
whatis.library/GetIDStringMaxLen whatis.library/GetIDStringMaxLen
NAME
GetIDStringMaxLen -- returns the length of the longest IDString in
the table.
SYNOPSIS
length = GetIDStringMaxLen()
D0
ULONG GetIDStringMaxLen( void );
FUNCTION
INPUTS
RESULT
NOTES
BUGS
SEE ALSO
whatis.library/GetIDType whatis.library/GetIDType
NAME
GetIDType -- returns the FileType of the given string.
SYNOPSIS
FileType = GetIDType( Type )
D0 A0
ULONG GetIDType( char * );
FUNCTION
Converts the Type string (as returned by GetIDString) into a
FileType.
INPUTS
Type = pointer to a string of characters.
RESULT
FileType - private value. See WhatIs(). If not found, returns
TYPE_UNKNOWNIDSTRING.
NOTES
BUGS
SEE ALSO
whatis.library/WhatIs whatis.library/WhatIs
NAME
WhatIs -- identify a file
SYNOPSIS
FileType = WhatIs( Name, TagItem )
D0 A0 A1
ULONG WhatIs( char *, struct TagItem * );
FUNCTION
Attempts to identify the file specified by Name.
TAGS
WI_FIB - ti_data points to a FileInfoBlock.
WI_Deep - Set to TRUE to deepsearch the file. Defaults to FALSE.
WI_Buffer - ti_data points to a NULL-terminated buffer.
WI_BufLen - ti_data is the length of the buffer.
WI_DLX - ti_data is DLX_numble, see arp.library.
WI_DLT - ti_data is DLT_numble, see dos.library.
INPUTS
Name = pointer to NULL-terminated string
TagItem = pointer to TagItem array, with tag values as described
above.
RESULT
FileType - Private value. Pass to other functions for more
information.
If NULL, the file wasn't scanned. Possible return values are:
TYPE_UNSCANNED, TYPE_UNKNOWNFILETYPE
NOTES
BUGS
SEE ALSO